package com.stylefeng.guns.modular.system.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 消息推送信息表
 * </p>
 *
 * @author stylefeng
 * @since 2020-03-14
 */
@TableName("push_msg")
public class VpnPushMsg extends Model<VpnPushMsg> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容
     */
    private String content;
    /**
     * 类别
     */
    private Integer category;
    /**
     * 做操人ID
     */
    @TableField("operation_user_id")
    private String operationUserId;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 发送时间
     */
    @TableField("send_time")
    private Date sendTime;
    /**
     * 信息更新时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 状态：0-已删除，1-已发送，2-失败
     */
    private Integer status;

    /**
     * 消息点击动作标示
     * 0-默认
     * 1-立即购买
     * 2-推荐分享
     * 3-打开网页
     */
    @TableField("action_flag")
    private String actionFlag;

    /**
     * 跳转网页的地址
     * 只有actionFlag为3时才会有
     */
    @TableField("link_url")
    private String linkUrl;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getCategory() {
        return category;
    }

    public void setCategory(Integer category) {
        this.category = category;
    }

    public String getOperationUserId() {
        return operationUserId;
    }

    public void setOperationUserId(String operationUserId) {
        this.operationUserId = operationUserId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getSendTime() {
        return sendTime;
    }

    public void setSendTime(Date sendTime) {
        this.sendTime = sendTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getActionFlag() {
        return actionFlag;
    }

    public void setActionFlag(String actionFlag) {
        this.actionFlag = actionFlag;
    }

    public String getLinkUrl() {
        return linkUrl;
    }

    public void setLinkUrl(String linkUrl) {
        this.linkUrl = linkUrl;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "VpnPushMsg{" +
        "id=" + id +
        ", title=" + title +
        ", content=" + content +
        ", category=" + category +
        ", operationUserId=" + operationUserId +
        ", createTime=" + createTime +
        ", sendTime=" + sendTime +
        ", updateTime=" + updateTime +
        ", status=" + status +
        "}";
    }
}
